package com.iakuil.app.domain.dto.query;

import com.iakuil.app.common.core.annotation.EndDate;
import com.iakuil.app.common.core.annotation.StartDate;
import com.iakuil.app.common.core.domain.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * 操作日志实体查询参数
 *
 * @author Kai
 * @date 2023-04-12
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class OperationLogQuery extends BaseQuery {

    @Schema(description = "模块标题")
    private String title;

    @Schema(description = "业务类型（0其它 1新增 2修改 3删除）", example = "1")
    private Integer businessType;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "操作来源（0其它 1后台用户 2手机端用户）")
    private Integer operSource;

    @Schema(description = "操作人员（模糊查询）")
    private String operName;

    @Schema(description = "操作状态（0正常 1异常）")
    private Integer status;

    @Schema(description = "记录开始日期", example = "2023-04-23")
    @StartDate
    private Date since;

    @Schema(description = "记录截止日期", example = "2023-04-23")
    @EndDate
    private Date util;
}
